@extends("backend.master")

@section("content")
	<h2>{{$title}}</h2>
	{{Form::open(array("route"=>"createPost_post","files"=>true))}}
	
	<p class="bluey">Vui lòng nhập liệu các thông tin dưới đây</p>

	<p class="minihead">Chuyên mục:</p>
	{{Form::select("cate",$cate)}}

	<p class="minihead">Tiêu đề:</p>
	{{Form::text('title',Input::old("title"),array('class'=>'form-control'))}}

	<p class="minihead">Mô tả ngắn:</p>
	{{Form::textarea("description",Input::old("description"),array("class"=>"form-control"))}}

	<p class="minihead">Nội dung:</p>
	{{Form::textarea("content",Input::old("content"),array("class"=>"form-control","id"=>"content"))}}

	<p class="minihead">Images:</p>
	{{Form::file("img")}}<br>

	{{Form::submit("Tạo mới",array("class"=>"btn btn-primary btn-lg"))}}

	{{Form::close()}}
@endsection

@section('data_code')
	<script language="javascript">
		
		$(function () {
		  CKEDITOR.replace('content', {
		   filebrowserBrowseUrl: '/ckfinder/ckfinder.html',
		   filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?type=Images',
		   filebrowserFlashBrowseUrl: '/ckfinder/ckfinder.html?type=Flash',
		   filebrowserUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
		   filebrowserImageUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
		   filebrowserFlashUploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'

		  });
 		});
	</script>
@endsection